package com.bis.ymyy.common.exception;

import lombok.Data;

@Data
public class BusinessException extends RuntimeException{

    private int code;
    private String msg;
    public BusinessException(EnumCode enumCode) {
        super();
        this.code = enumCode.getCode();
        this.msg = enumCode.getDesc();
    }

}
